﻿using System.Collections;
using FlowCanvas;
using FlowCanvas.Nodes;
using NodeCanvas.Framework;
using ParadoxNotion.Design;
using UnityEngine;
using Yoozoo.Gameplay.Liberty.AI;

namespace Yoozoo.Gameplay.Liberty.Nodes
{
    [Category("Ggame")]
    public class SetNpcDestinationVec3 : CallableActionNode<int,Vector3>
    {
        public override void Invoke(int uniqueId,Vector3 destination)
        {
            AIEntity aiEntity = LibertyAIUtils.GetNpc(uniqueId);
            if (aiEntity!=null)
            {
                aiEntity.seeker.SetDestination(destination);
            }
        }
    }
}